for r in range(4):
    for c in range(r + 1):
        print('#', end='')
    print()
